package cn.rongdao.jrkabao.model.message;


import com.mifengkong.frtools.http.request.HttpFunction;

import java.util.List;

import cn.rongdao.jrkabao.bean.message.LoanMessageBean;
import cn.rongdao.jrkabao.model.api.BaseSuDaiModel;
import io.reactivex.Observable;
import io.reactivex.Observer;

/**
 * Created by jack on 17/5/11
 */

public class LoanMessageModel extends BaseSuDaiModel {

    public static LoanMessageModel getInstance() {
        return getPresent(LoanMessageModel.class);
    }

    public void execute(Observer<List<LoanMessageBean>> observer) {
        Observable<List<LoanMessageBean>> observable = mServletApi.getMessageData(mParams).map(new HttpFunction<List<LoanMessageBean>>());
        toSubscribe(observable, observer);
    }
}
